{% extends "enterprise/base.html" %}
{% block css %}
{% endblock %}
{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_0";
                var sub_menu = "menu_0_3";
            </script>
            <div class="col-md-12">
                <!-- <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>法律法规遵守情况</h3></div>
                    </div>
                </div> -->
                <form class="formSubmit" method="post" enctype="multipart/form-data" >
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>一、获得的行政许可情况（附行政许可文件）</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                        </div>
                    </div>
                    <div class="panel-body with-table">
                                <!-- <input type="text" name="enterprise_name" placeholder="请输入" value="{{basic.enterprise_name}}" datatype="*"> -->
                                <table class="input_in table-detail">
                                    <tr>
                                        <th width=40>序号</th>
                                        <th width=220>许可文件名称</th>
                                        <td>
                                            <table>
                                                <tr>
                                                    <th width=120>文号/编号</th>
                                                    <th width=120>审批/发证机关</th>
                                                    <th width=150>批复时间/有效期限</th>
                                                    <th width=160>附件</th>
                                                    <th width=120>备注</th>
                                                    <th width=60>操作</th>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table> -->
                                <!-- <table class="input_in"> -->
                                    <tr>
                                        <td width=40 >1</td>
                                        <td width=220>环境影响评价文件批复</td>
                                        <td>
                                            <table>
                                            {% if list_1 %}
                                                {% for l in list_1 %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_1" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_1" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_1" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile1">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file1" placeholder="请输入" value=""></td>
                                                    <td width=130>
                                                       <input datatype="*" type="text"  name="remark1" placeholder="批复项目名称" value="{{l.remark}}"></td>
                                                    {%if forloop.counter == 1%}
                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                    {%else%}
                                                        <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                    {% endif %}
                                                </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_1" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_1" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_1" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>
                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile1">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file1" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark1" placeholder="批复项目名称" value="{{l.remark}}"></td>
                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40>2</td>
                                        <td width=220>竣工环境保护验收批复</td>
                                        <td>
                                            <table>
                                            {% if list_2 %}
                                                {% for l in list_2 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_2" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_2" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_2" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>


                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile2">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file2" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark2" placeholder="验收项目名称" value="{{l.remark}}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}

                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_2" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_2" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_2" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>


                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile2">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file2" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark2" placeholder="验收项目名称" value="{{ l.remark }}"></td>
                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40>3</td>
                                        <td width=220>污染物排放许可证</td>
                                        <td>
                                            <table>
                                            {% if list_3 %}
                                                {% for l in list_3 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_3" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_3" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_3" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile3">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file3" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark3" placeholder="许可污染物及排放量" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}

                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_3" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_3" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_3" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile3">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file3" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark3" placeholder="许可污染物及排放量" value="{{ l.remark }}"></td>
                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40>4</td>
                                        <td width=220>危险废物经营许可证</td>
                                        <td>
                                            <table>
                                            {% if list_4 %}
                                                {% for l in list_4 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_4" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_4" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_4" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>


                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile4">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file4" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark4" placeholder="危险经营许可范围类别" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_4" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_4" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_4" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>


                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile4">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file4" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark4" placeholder="危险经营许可范围类别" value="{{ l.remark }}"></td>
                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40 rowspan="{{ five_length }}">5</td>
                                        <td width=220 rowspan="{{ five_length }}">危险化学品安全生产许可证</td>
                                        <td>
                                            <table>
                                            {% if list_5 %}
                                                {% for l in list_5 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_5" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_5" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_5" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile5">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file5" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark5" placeholder="许可范围" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_5" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_5" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_5" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile5">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file5" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark5" placeholder="许可范围" value="{{ l.remark }}"></td>
                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40 rowspan="{{ six_length }}">6</td>
                                        <td width=220 rowspan="{{ six_length }}">危险化学品安全使用许可证</td>
                                        <td>
                                            <table>
                                            {% if list_6 %}
                                                {% for l in list_6 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_6" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_6" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_6" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>


                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile6">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file6" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark6" placeholder="许可范围" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_6" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_6" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_6" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{l.file_name}}" name="oldfile6">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file6" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark6" placeholder="许可范围" value="{{ l.remark }}"></td>
                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
                                    <tr>
                                        <td width=40 rowspan="{{ seven_length }}">7</td>
                                        <td width=220 rowspan="{{ seven_length }}">工业产品生产许可证</td>
                                        <td>
                                            <table>
                                            {% if list_7 %}
                                                {% for l in list_7 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_7" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_7" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_7" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile7">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file7" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark7" placeholder="许可产品名称" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_7" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_7" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_7" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>
                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile7">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file7" placeholder="请输入" value=""></td>
                                                    <td width=130><input datatype="*" type="text"  name="remark7" placeholder="许可产品名称" value="{{ l.remark }}"></td>
                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width=40 rowspan="{{ eight_length }}">8</td>
                                        <td width=220 rowspan="{{ eight_length }}">危险化学品登记证</td>
                                        <td>
                                            <table>
                                            {% if list_8 %}
                                                {% for l in list_8%}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_8" placeholder="请输入" value="{{l.serial_number}}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_8" placeholder="请输入" value="{{l.issuing_authority}}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_8" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>
                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile8">
                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file8" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark8" placeholder="登记品种及能力" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_8" placeholder="请输入" value=""></td>
                                                    <td width=120><input datatype="*" type="text"  name="issuing_authority_8" placeholder="请输入" value=""></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_8" value=""  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>
                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{l.file_name}}" name="oldfile8">
                                                    <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file8" placeholder="请输入" value=""></td>
                                                   <td width=130><input datatype="*" type="text"  name="remark8" placeholder="登记品种及能力" value="{{ l.remark }}"></td>
                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width=40 rowspan="{{ nine_length }}">9</td>
                                        <td width=220 rowspan="{{ nine_length }}">危险化学品生产使用环境管理登记证</td>
                                        <td>
                                            <table>
                                            {% if list_9 %}
                                                {% for l in list_9 %}
                                                    <tr>
                                                        <td width=120><input datatype="*" type="text"  name="serial_number_9" placeholder="请输入" value="{{ l.serial_number }}"></td>
                                                        <td width=120><input datatype="*" type="text" name="issuing_authority_9" placeholder="请输入" value="{{ l.issuing_authority }}"></td>
                                                        <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_9" value="{{ l.expiration }}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>

                                                        <td width=180><input datatype="*" style="width:120px;" type="text" value="{{ l.upload_file_name}}" name="oldfile9">
                                                        <button type="button" onclick="choseFile(this)">选择</button>
                                                            <input style="display:none;" type="file" name="file9" placeholder="请输入" value=""></td>
                                                        <td width=130><input datatype="*" type="text"  name="remark9" placeholder="登记品种及能力" value="{{ l.remark }}"></td>
                                                        {%if forloop.counter == 1%}
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        {%else%}
                                                            <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                        {% endif %}
                                                    </tr>
                                                {% endfor %}
                                            {% else %}
                                                <tr>
                                                    <td width=120><input datatype="*" type="text"  name="serial_number_9" placeholder="请输入" value=""></td>
                                                    <td width=120><input datatype="*" type="text" name="issuing_authority_9" placeholder="请输入" value=""></td>
                                                    <td width=100><input datatype="*" class="Wdate time" type="text"  name="expiration_9" value=""  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" /></td>
                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="" name="oldfile9">
                                                    <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file9" placeholder="请输入" value=""></td>
                                                   <td width=130><input datatype="*" type="text"  name="remark9" placeholder="登记品种及能力" value="{{ l.remark }}"></td>
                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                </tr>
                                            {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                <!-- </table>
                                <table class="input_in"> -->
{#                                    <tr>#}
{#                                        <td width=40>8</td>#}
{#                                        <td width=220>附件（附行政许可文件）</td>#}
{#                                        <td>#}
{#                                            <table>#}
{##}
{#                                                    {% if law_files %}#}
{#                                                    {% for file in law_files %}#}
{#                                                        <tr>#}
{#                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{l.file_name}}" name="oldfile">#}
{#                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>#}
{#                                                        {%if forloop.counter == 1%}#}
{#                                                    <td width=60><input datatype="*" type="button" value="添加" class="btn-success" onclick="addFile(this)"></td>#}
{#                                                        {% else %}#}
{#                                                    <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>#}
{#                                                        {% endif %}#}
{#                                                        </tr>#}
{#                                                    {% endfor %}#}
{#                                                    {% else %}#}
{#                                                        <tr>#}
{#                                                        <td width=260><input style="width:200px;" type="text" value="{{l.upload_file}}"> <button type="button" onclick="choseFile(this)">选择</button><input datatype="*" style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>#}
{#                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>#}
{#                                                        </tr>#}
{#                                                    {% endif %}#}
{##}
{#                                            </table>#}
{#                                        </td>#}
{#                                    </tr>#}
{##}
{#                                    <tr>#}
{#                                        <td width=40>8</td>#}
{#                                        <td width=220>附件（附行政许可文件）</td>#}
{#                                        <td>#}
{#                                            <table>#}
{##}
{#                                                    {% if law_files %}#}
{#                                                    {% for file in law_files %}#}
{#                                                        <tr>#}
{#                                                    <td width=180><input datatype="*" style="width:120px;" type="text" value="{{l.file_name}}" name="oldfile">#}
{#                                                        <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>#}
{#                                                        {%if forloop.counter == 1%}#}
{#                                                    <td width=60><input datatype="*" type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>#}
{#                                                        {% else %}#}
{#                                                    <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>#}
{#                                                        {% endif %}#}
{#                                                        </tr>#}
{#                                                    {% endfor %}#}
{#                                                    {% else %}#}
{#                                                        <tr>#}
{#                                                        <td width=260><input style="width:200px;" type="text" value="{{l.upload_file}}"> <button type="button" onclick="choseFile(this)">选择</button><input datatype="*" style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>#}
{#                                                        <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>#}
{#                                                        </tr>#}
{#                                                    {% endif %}#}
{##}
{#                                            </table>#}
{#                                        </td>#}
{#                                    </tr>#}
                                <!-- </table>
                                <table class="input_in"> -->
{#                                    <tr>#}
{#                                        <td width=50>备注</td>#}
{#                                        <td colspan=9>#}
{#                                            <textarea name="remark"  placeholder="请输入" style="resize:no;">{{remark_1.remark}}</textarea></td>#}
{#                                    </tr>#}
                                </table>
                    </div>
                </div>
                <div class="buttons">
                    <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存">
                                <input type="submit" class="btn btn-success btn-lg" value="确认">
                </div>
                </form>
            </div>

{% endblock %}
{% block js %}
{% endblock %}